package grape.house.rest.client.impl.estatephase;

import grape.house.rest.client.estatephase.EstatePhaseClient;
import grape.house.rest.estatephase.mvc.EstatePhaseInnerController;
import grape.house.service.estatephase.po.EstatePhase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/28 16:37
 */
@Component
public class EstatePhaseClientImpl implements EstatePhaseClient {
    @Autowired
    private EstatePhaseInnerController estatePhaseInnerController;
    @Override
    public String trans(String type, String key) {
        return estatePhaseInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return estatePhaseInnerController.support(type);
    }

    @Override
    public EstatePhase getEstatePhaseById(String id) {
        return estatePhaseInnerController.getEstatePhaseById(id);
    }

    @Override
    public EstatePhase getEstatePhaseByCode(String code) {
        return estatePhaseInnerController.getEstatePhaseByCode(code);
    }
}
